package com.qdxwx.data.mapper.card;


import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *CardCourse接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface CardCourseMapper {

    int insert(long cardId, int courseIds);
    /**
     * 添加CardCourse
     */
    int insertBatch(long cardId, List<Integer> courseIds);

    /**
     * 根据id删除一个CardCourse
     * @param cardId 要删除的id
     */
    int deleteByCardId(long cardId);

    /**
     * 根据条件获取CardCourse列表
     * @param cardId 查询条件
     * @return List<CardCourse>
     */
    List<Integer> selectCourseIds(Long cardId);
}